#ifndef _BUOLA_CV_IO_CKINECTDRIVER_OPENNI2_H_
#define _BUOLA_CV_IO_CKINECTDRIVER_OPENNI2_H_

#include <buola/buola.h>

#include "ckinectdevice_openni2.h"

namespace buola { namespace cvi {

class CKinectDriver
{
public:
    CKinectDriver();
    ~CKinectDriver();
 
    int DeviceCount()               {   return mDevices.size(); }
    CKinectDevice *Device(int i)    {   return mDevices[i];     }
    
private:
    void CreateDeviceList();
    
    std::vector<CKinectDevice*> mDevices;
};

CKinectDriver &get_kinect_driver();

/*namespace cvi*/ } /*namespace buola*/ }

#endif
